import http from "@/http";
//新增
export const addApi = (parm: any) => {
    return http.post({
        url: '/api/role',
        data: parm
    })
}
//列表
export const getListAPi = (parm: any) => {
    return http.get({
        url: '/api/role/list',
        params: parm
    })
}
//编辑
export const editApi = (parm: any)=>{
    return http.put({
        url: '/api/role',
        data: parm
    })
}
//删除
export const deleteApi = (roleId:any)=> {
    return http.delete({
        url: `/api/role/${roleId}`
    })
}
//分配权限回显
export const getAssingShowApi = (parm:any) => {
    return http.get({
        url: '/api/role/getAssingShow',
        params:parm
    })
}
//分配权限保存
export const assignSaveApi = (parm:any) =>{
    return http.post({
        url:'/api/role/assignSave',
        data:parm
    })
}
